package com.lebang.mapper;

import com.lebang.entity.MemberRankRecord;
import com.lebang.example.MemberRankRecordExample;
import com.lebang.model.QuerRankDate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MemberRankRecordMapper {
    long countByExample(MemberRankRecordExample example);

    int deleteByExample(MemberRankRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MemberRankRecord record);

    int insertSelective(MemberRankRecord record);

    List<MemberRankRecord> selectByExample(MemberRankRecordExample example);

    MemberRankRecord selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MemberRankRecord record, @Param("example") MemberRankRecordExample example);

    int updateByExample(@Param("record") MemberRankRecord record, @Param("example") MemberRankRecordExample example);

    int updateByPrimaryKeySelective(MemberRankRecord record);

    int updateByPrimaryKey(MemberRankRecord record);

    MemberRankRecord selectByMemberId(@Param("memberId") String memberId, @Param("type") Integer type);

    int checkWeekEnd(String s);

    List<QuerRankDate> selectDayDate(Integer type);
}